package com.woniuxy.yuekeuser.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.yuekeuser.controller.Form.CampsiteForm;
import com.woniuxy.yuekeuser.controller.Info.CampsiteInfo;
import com.woniuxy.yuekeuser.model.Campsite;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.yuekeuser.model.HotelCar;

import java.util.Calendar;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Freedom
 * @since 2020-11-03
 */
public interface ICampsiteService extends IService<Campsite> {
    public List<CampsiteForm> getAllCampsiteByHeat();

    public int findcampsiteIdByuserId(int id);

    public String findcampsiteNameByuserId(int id);

    public IPage<CampsiteForm> findAllCampsiteList(Page<CampsiteForm>page,String cityName,String findCampsite,int heat,int rating);

    public Campsite findCampsiteById(int campsiteId);

    public void  addCampsiteHeat(Campsite campsite);

    public CampsiteInfo nowCampsiteById(int campsiteById);

    List<Campsite> searchCampsiteByKeyWords(String keyWord);
}
